package org.jeecg.modules.flower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 仓库主表
 * @Author: jeecg-boot
 * @Date:   2022-07-15
 * @Version: V1.0
 */
@ApiModel(value="flower_storehouse对象", description="仓库主表")
@Data
@TableName("flower_storehouse")
public class FlowerStorehouse implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "基地id")
    private String baseId;

	@Excel(name = "所属单位", width = 15)
    @ApiModelProperty(value = "所属单位")
    private String deptCode;


	@Excel(name = "所属单位", width = 15)
    @ApiModelProperty(value = "所属单位")
    private String deptName;

	@Excel(name = "仓库名称", width = 15)
    @ApiModelProperty(value = "仓库名称")
    private String name;
	/**仓库编码*/
	@Excel(name = "仓库编码", width = 15)
    @ApiModelProperty(value = "仓库编码")
    private String code;
	/**负责人*/
	@Excel(name = "负责人", width = 15)
    @ApiModelProperty(value = "负责人")
    private String person;
	/**负责人编码*/
	@Excel(name = "负责人编码", width = 15)
    @ApiModelProperty(value = "负责人编码")
    private String personcode;

    @Excel(name = "成本中心", width = 15)
    @Dict(dicCode = "ch_cost",dicText = "costText")
    @ApiModelProperty(value = "成本中心")
    private String cost;

	/**状态 0正常1删除*/
	@Excel(name = "状态 0正常1删除", width = 15)
    @ApiModelProperty(value = "状态 0正常1删除")
    private Integer state;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
}
